/**
 * order status
 * ========================================
 * js switch case ===
 */

export default {
  ALL: -1,
  PAID: 1,
  WAIT_RECEIVING: 2,
  RECEIVED: 3,
  SERVICE: 4,
  CANCEL: 5,
  FINISH: 10,
  NON_PAYMENT: 0,
  DELETE: -99,
  REFUND: 6,
  statusText: (status) => {
    switch (status) {
      case 1:
        return '待发货'
      case 2:
        return '待收货'
      case 3:
        return '待评价'
      case 4:
        return '售后'
      case 5:
        return '已取消'
      case 6:
        return '已退货'
      case -99:
        return '删除'
      case 0:
        return '待支付'
    }
  }
}
